package com.veer.shop.param;

import java.util.Map;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.veer.shop.utils.DateTimeUtil;

/**
 * 商品属性集列表搜索参数
 * 
 * @author WangBin
 * 2020年11月15日-上午9:53:35
 */
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class AttributeSetParam {
	private String attribute_set_name;
	private String attribute_set_bn;
	private String is_actived;
	private String created_at;
	private String begin_at;
	private String end_at;
	public String getBeginAt() {
		return begin_at;
	}
	public void setBeginAt(String beginAt) {
		this.begin_at = beginAt;
	}
	public String getCreatedAt() {
		return created_at;
	}
	public void setCreatedAt(String createdAt) {
		// 这里需要预处理时间区间
		Map<String, String> createdAtRange = DateTimeUtil.parseCreatedAtRange(createdAt);
		this.begin_at = createdAtRange.get("begin_at");
		this.end_at = createdAtRange.get("end_at");
		this.created_at = createdAt;
	}
	public String getEndAt() {
		return end_at;
	}
	public void setEndAt(String endAt) {
		this.end_at = endAt;
	}
	public String getIsActived() {
		return is_actived;
	}
	public void setIsActived(String isActived) {
		this.is_actived = isActived;
	}
	public String getAttributeSetName() {
		return attribute_set_name;
	}
	public void setAttributeSetName(String attributeSetName) {
		this.attribute_set_name = attributeSetName;
	}
	public String getAttributeSetBn() {
		return attribute_set_bn;
	}
	public void setAttributeSetBn(String attributeSetBn) {
		this.attribute_set_bn = attributeSetBn;
	}
}
